package com.kashow.bean.user.teacher;

import android.text.TextUtils;

import com.kashow.bean.BaseBean;

import java.util.List;

/**
 * Created by cg on 16/12/28.
 */

public class TeacherBean extends BaseBean {
    /**
     * _id : 937
     * openid : ohHipv2lG66TaWDJfsLzaae3cuiE
     * wxUserInfo : {"openid":"o2Bvkvr7llZVpIbgw0u_kGUHbYtM","nickname":"liberty","sex":1,"language":"zh_CN","city":"Hangzhou","province":"Zhejiang","country":"CN","headimgurl":"http://wx.qlogo.cn/mmopen/56kJkz0yjh1iaDJp1qJ6oDutXiblLfOlaZibYKs9gz885EYiaJTVkd0lKASQlITk5YEmoHG9Djuoukibt8RLx0NZh5tvyODJ1jObD/0","unionid":"ojmTMwKhDHt38N8Iwc92VM367d3A"}
     * relation : 552
     * unionid : ojmTMwKhDHt38N8Iwc92VM367d3A
     * headimgurl : http://oh2ucnq1s.bkt.clouddn.com/fe85d064377e4bcca0390342372abe19?292_292
     * nickname : liberty
     * appopenid : o2Bvkvr7llZVpIbgw0u_kGUHbYtM
     * authInfo : {"intro":"我是肖举,这是我的简介","QRcode":"http://oh2ucnq1s.bkt.clouddn.com/339bfb87cdc042a19a5b8540616ae726","homepage":"孔哪像你们","realName":"肖举","cardNumber":"41052319921107603x","cardPic1":"http://oh2ucnq1s.bkt.clouddn.com/eac58369ebf145c395d627a892d2f3e2","cardPic2":"http://oh2ucnq1s.bkt.clouddn.com/ef235572e72b41b7bd4df9845a479f8b","status":1,"updatedAt":"2017-01-17T01:04:35.184Z","createdAt":"2017-01-17T01:04:35.184Z"}
     * updatedAt : 2017-01-17T01:04:35.185Z
     * supplement : {"centerVideoCover":"http://oss.kashowvr.com/images/syy_video_cover.jpeg","centerVideoUrl":"http://oss.kashowvr.com/videos/syy_center.mp4","centerBgUrl":"http://oss.kashowvr.com/images/syy_center_bg.png"}
     * createdAt : 2016-11-30T08:21:11.181Z
     * isSub : true
     * sex : 1
     * balance : 0
     * score : 0
     * level : 1
     * isTeacher : false
     * follow : false
     * follows : 0
     * followers : 0
     * stars : 0
     */

    private int _id;
    private String openid;
    private WxUserInfoEntity wxUserInfo;
    private int relation;
    private String unionid;
    private String headimgurl;
    private String nickname;
    private String appopenid;
    private AuthInfoEntity authInfo;
    private String updatedAt;
    private SupplementEntity supplement;
    private String createdAt;
    private boolean isSub;
    private int sex;
    private int balance;
    private int score;
    private int level;
    private boolean isTeacher;
    private boolean follow;
    private int follows;
    private int followers;
    private int stars;
    private String grade;

    public boolean isFollow() {
        return follow;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getHeadimgurl() {
        if (TextUtils.isEmpty(headimgurl) && wxUserInfo != null) {
            headimgurl = wxUserInfo.getHeadimgurl();
        }
        return headimgurl;
    }
    public String getNickname() {
        if (TextUtils.isEmpty(nickname) && wxUserInfo!= null) {
            nickname = wxUserInfo.getNickname();
        }
        return nickname;
    }


    public void set_id(int _id) {
        this._id = _id;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public void setWxUserInfo(WxUserInfoEntity wxUserInfo) {
        this.wxUserInfo = wxUserInfo;
    }

    public void setRelation(int relation) {
        this.relation = relation;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public void setAppopenid(String appopenid) {
        this.appopenid = appopenid;
    }

    public void setAuthInfo(AuthInfoEntity authInfo) {
        this.authInfo = authInfo;
    }

    public void setUpdatedAt(String updatedAt) {
        this.updatedAt = updatedAt;
    }

    public void setSupplement(SupplementEntity supplement) {
        this.supplement = supplement;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public void setIsSub(boolean isSub) {
        this.isSub = isSub;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public void setBalance(int balance) {
        this.balance = balance;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public void setIsTeacher(boolean isTeacher) {
        this.isTeacher = isTeacher;
    }

    public void setFollow(boolean follow) {
        this.follow = follow;
    }

    public void setFollows(int follows) {
        this.follows = follows;
    }

    public void setFollowers(int followers) {
        this.followers = followers;
    }

    public void setStars(int stars) {
        this.stars = stars;
    }

    public int get_id() {
        return _id;
    }

    public String getOpenid() {
        return openid;
    }

    public WxUserInfoEntity getWxUserInfo() {
        return wxUserInfo;
    }

    public int getRelation() {
        return relation;
    }

    public String getUnionid() {
        return unionid;
    }

    public String getAppopenid() {
        return appopenid;
    }

    public AuthInfoEntity getAuthInfo() {
        return authInfo;
    }

    public String getUpdatedAt() {
        return updatedAt;
    }

    public SupplementEntity getSupplement() {
        return supplement;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public boolean getIsSub() {
        return isSub;
    }

    public int getSex() {
        return sex;
    }

    public int getBalance() {
        return balance;
    }

    public int getScore() {
        return score;
    }

    public int getLevel() {
        return level;
    }

    public boolean getIsTeacher() {
        return isTeacher;
    }

    public boolean getFollow() {
        return follow;
    }

    public int getFollows() {
        return follows;
    }

    public int getFollowers() {
        return followers;
    }

    public int getStars() {
        return stars;
    }

    public static class WxUserInfoEntity {
        /**
         * openid : o2Bvkvr7llZVpIbgw0u_kGUHbYtM
         * nickname : liberty
         * sex : 1
         * language : zh_CN
         * city : Hangzhou
         * province : Zhejiang
         * country : CN
         * headimgurl : http://wx.qlogo.cn/mmopen/56kJkz0yjh1iaDJp1qJ6oDutXiblLfOlaZibYKs9gz885EYiaJTVkd0lKASQlITk5YEmoHG9Djuoukibt8RLx0NZh5tvyODJ1jObD/0
         * unionid : ojmTMwKhDHt38N8Iwc92VM367d3A
         */

        private String openid;
        private String nickname;
        private int sex;
        private String language;
        private String city;
        private String province;
        private String country;
        private String headimgurl;
        private String unionid;

        public void setOpenid(String openid) {
            this.openid = openid;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public void setSex(int sex) {
            this.sex = sex;
        }

        public void setLanguage(String language) {
            this.language = language;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public void setProvince(String province) {
            this.province = province;
        }

        public void setCountry(String country) {
            this.country = country;
        }

        public void setHeadimgurl(String headimgurl) {
            this.headimgurl = headimgurl;
        }

        public void setUnionid(String unionid) {
            this.unionid = unionid;
        }

        public String getOpenid() {
            return openid;
        }

        public String getNickname() {
            return nickname;
        }

        public int getSex() {
            return sex;
        }

        public String getLanguage() {
            return language;
        }

        public String getCity() {
            return city;
        }

        public String getProvince() {
            return province;
        }

        public String getCountry() {
            return country;
        }

        public String getHeadimgurl() {
            return headimgurl;
        }

        public String getUnionid() {
            return unionid;
        }
    }

    public static class AuthInfoEntity {
        /**
         * intro : 我是肖举,这是我的简介
         * QRcode : http://oh2ucnq1s.bkt.clouddn.com/339bfb87cdc042a19a5b8540616ae726
         * homepage : 孔哪像你们
         * realName : 肖举
         * cardNumber : 41052319921107603x
         * cardPic1 : http://oh2ucnq1s.bkt.clouddn.com/eac58369ebf145c395d627a892d2f3e2
         * cardPic2 : http://oh2ucnq1s.bkt.clouddn.com/ef235572e72b41b7bd4df9845a479f8b
         * status : 1
         * updatedAt : 2017-01-17T01:04:35.184Z
         * createdAt : 2017-01-17T01:04:35.184Z
         */

        private String intro;
        private String QRcode;
        private String homepage;
        private String realName;
        private String cardNumber;
        private String cardPic1;
        private String cardPic2;
        private int status;
        private String updatedAt;
        private String createdAt;

        public void setIntro(String intro) {
            this.intro = intro;
        }

        public void setQRcode(String QRcode) {
            this.QRcode = QRcode;
        }

        public void setHomepage(String homepage) {
            this.homepage = homepage;
        }

        public void setRealName(String realName) {
            this.realName = realName;
        }

        public void setCardNumber(String cardNumber) {
            this.cardNumber = cardNumber;
        }

        public void setCardPic1(String cardPic1) {
            this.cardPic1 = cardPic1;
        }

        public void setCardPic2(String cardPic2) {
            this.cardPic2 = cardPic2;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public void setUpdatedAt(String updatedAt) {
            this.updatedAt = updatedAt;
        }

        public void setCreatedAt(String createdAt) {
            this.createdAt = createdAt;
        }

        public String getIntro() {
            return intro;
        }

        public String getQRcode() {
            return QRcode;
        }

        public String getHomepage() {
            return homepage;
        }

        public String getRealName() {
            return realName;
        }

        public String getCardNumber() {
            return cardNumber;
        }

        public String getCardPic1() {
            return cardPic1;
        }

        public String getCardPic2() {
            return cardPic2;
        }

        public int getStatus() {
            return status;
        }

        public String getUpdatedAt() {
            return updatedAt;
        }

        public String getCreatedAt() {
            return createdAt;
        }
    }


//    {
//        "centerVideoCover" : "http://oss.kashowvr.com/images/syy_video_cover.jpeg",
//            "centerVideoUrl" : "http://oss.kashowvr.com/videos/syy_center.mp4",
//            "centerBgUrl" : "http://oss.kashowvr.com/images/syy_center_bg.png",
//            "video" : {
//        "url" : "http://ohv37edsg.bkt.clouddn.com/video909364d5978da7ca9f77843a229555bf",
//                "thumb" : "http://oss.kashowvr.com/images/shiyy/scroll_3.jpg"
//    },
//        "specBackground" : "http://oss.kashowvr.com/images/shiyy/zhuyebeijing.jpg",
//            "pageTitle" : "大爱堂",
//            "banners" : [
//        {
//            "picUrl" : "http://oss.kashowvr.com/images/shiyy/scroll_1.jpg",
//                "href" : ""
//        },
//        {
//            "picUrl" : "http://oss.kashowvr.com/images/shiyy/scroll_2.jpg",
//                "href" : ""
//        },
//        {
//            "picUrl" : "http://oss.kashowvr.com/images/shiyy/scroll_3.jpg",
//                "href" : ""
//        },
//        {
//            "picUrl" : "http://oss.kashowvr.com/images/shiyy/scroll_4.jpg",
//                "href" : ""
//        }
//        ]
//    }


    public static class SupplementEntity {
        /**
         * centerVideoCover : http://oss.kashowvr.com/images/syy_video_cover.jpeg
         * centerVideoUrl : http://oss.kashowvr.com/videos/syy_center.mp4
         * centerBgUrl : http://oss.kashowvr.com/images/syy_center_bg.png
         */

        private String centerVideoCover;
        private String centerVideoUrl;
        private String centerBgUrl;

        private String imageUrl;
        private String specBackground;
        private String pageTitle;



        private VideoEntity video;
        private List<BannerEntity> banners;

        public String getSpecBackground() {
            return specBackground;
        }

        public void setSpecBackground(String specBackground) {
            this.specBackground = specBackground;
        }

        public void setImageUrl(String imageUrl) {
            this.imageUrl = imageUrl;
        }

        public String getImageUrl() {
            return imageUrl;
        }

        public void setCenterVideoCover(String centerVideoCover) {
            this.centerVideoCover = centerVideoCover;
        }

        public void setCenterVideoUrl(String centerVideoUrl) {
            this.centerVideoUrl = centerVideoUrl;
        }

        public void setCenterBgUrl(String centerBgUrl) {
            this.centerBgUrl = centerBgUrl;
        }

        public String getCenterVideoCover() {
            return centerVideoCover;
        }

        public String getCenterVideoUrl() {
            return centerVideoUrl;
        }

        public String getCenterBgUrl() {
            return centerBgUrl;
        }

        public VideoEntity getVideo() {
            return video;
        }

        public void setVideo(VideoEntity video) {
            this.video = video;
        }

        public List<BannerEntity> getBanners() {
            return banners;
        }

        public void setBanners(List<BannerEntity> banners) {
            this.banners = banners;
        }

        public String getPageTitle() {
            return pageTitle;
        }

        public void setPageTitle(String pageTitle) {
            this.pageTitle = pageTitle;
        }

        public static class VideoEntity {
            private String url;
            private String thumb;

            public String getThumb() {
                return thumb;
            }

            public void setThumb(String thumb) {
                this.thumb = thumb;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }
        }

        public static class BannerEntity {
            private String picUrl;
            private String href;

            public String getPicUrl() {
                return picUrl;
            }

            public void setPicUrl(String picUrl) {
                this.picUrl = picUrl;
            }

            public String getHref() {
                return href;
            }

            public void setHref(String href) {
                this.href = href;
            }
        }

    }


//    /**
//     * isTeacher : true
//     * createdAt : 2016-09-26T07:28:45.819Z
//     * wxUserInfo : {"openid":"127.0.0.1","nickname":"127.0.0.1","sex":2,"city":"杭州","province":"浙江","country":"中国","headimgurl":"http://wx0"}
//     * openid : 127.0.0.1
//     * phone : 18600000000
//     * userName : 127.0.0.1
//     * _id : 61
//     * follows : 100
//     * followers : 100
//     * grade : NaN
//     */
//
//    private boolean isTeacher;
//    private String createdAt;
//    private WxUserInfoEntity wxUserInfo;
//    private String openid;
//    private String phone;
//    private String userName;
//    private int _id;
//    private int follows;
//    private int followers;
//    private String grade;
//    private String headimgurl;
//    private String intro;
//    private boolean follow;
//
//    public boolean isFollow() {
//        return follow;
//    }
//
//    public void setFollow(boolean follow) {
//        this.follow = follow;
//    }
//
//    public String getIntro() {
//        return intro;
//    }
//
//    public void setIntro(String intro) {
//        this.intro = intro;
//    }
//
//    /**
//     * supplement : {"imageUrl":"xxx"}
//     */
//
//    public String getHeadimgurl() {
//        if (TextUtils.isEmpty(headimgurl) && wxUserInfo != null) {
//            headimgurl = wxUserInfo.getHeadimgurl();
//        }
//        return headimgurl;
//    }
//
//    private SupplementEntity supplement;
//
//
//
//    public void setHeadimgurl(String headimgurl) {
//        this.headimgurl = headimgurl;
//    }
//
//    public void setIsTeacher(boolean isTeacher) {
//        this.isTeacher = isTeacher;
//    }
//
//    public void setCreatedAt(String createdAt) {
//        this.createdAt = createdAt;
//    }
//
//    public void setWxUserInfo(WxUserInfoEntity wxUserInfo) {
//        this.wxUserInfo = wxUserInfo;
//    }
//
//    public void setOpenid(String openid) {
//        this.openid = openid;
//    }
//
//    public void setPhone(String phone) {
//        this.phone = phone;
//    }
//
//    public void setUserName(String userName) {
//        this.userName = userName;
//    }
//
//    public void set_id(int _id) {
//        this._id = _id;
//    }
//
//    public void setFollows(int follows) {
//        this.follows = follows;
//    }
//
//    public void setFollowers(int followers) {
//        this.followers = followers;
//    }
//
//    public void setGrade(String grade) {
//        this.grade = grade;
//    }
//
//    public boolean getIsTeacher() {
//        return isTeacher;
//    }
//
//    public String getCreatedAt() {
//        return createdAt;
//    }
//
//    public WxUserInfoEntity getWxUserInfo() {
//        return wxUserInfo;
//    }
//
//    public String getOpenid() {
//        return openid;
//    }
//
//    public String getPhone() {
//        return phone;
//    }
//
//    public String getUserName() {
//        if (TextUtils.isEmpty(userName)&& wxUserInfo != null){
//            userName = wxUserInfo.getNickname();
//        }
//        return userName;
//    }
//
//    public int get_id() {
//        return _id;
//    }
//
//    public int getFollows() {
//        return follows;
//    }
//
//    public int getFollowers() {
//        return followers;
//    }
//
//    public String getGrade() {
//        return grade;
//    }
//
//    public void setSupplement(SupplementEntity supplement) {
//        this.supplement = supplement;
//    }
//
//    public SupplementEntity getSupplement() {
//        return supplement;
//    }
//
//    public static class WxUserInfoEntity {
//
//
//        /**
//         * openid : 127.0.0.1
//         * nickname : 127.0.0.1
//         * sex : 2
//         * city : 杭州
//         * province : 浙江
//         * country : 中国
//         * headimgurl : http://wx0
//         */
//
//        private String openid;
//        private String nickname;
//        private int sex;
//        private String city;
//        private String province;
//        private String country;
//        private String headimgurl;
//
//        public void setOpenid(String openid) {
//            this.openid = openid;
//        }
//
//        public void setNickname(String nickname) {
//            this.nickname = nickname;
//        }
//
//        public void setSex(int sex) {
//            this.sex = sex;
//        }
//
//        public void setCity(String city) {
//            this.city = city;
//        }
//
//        public void setProvince(String province) {
//            this.province = province;
//        }
//
//        public void setCountry(String country) {
//            this.country = country;
//        }
//
//        public void setHeadimgurl(String headimgurl) {
//            this.headimgurl = headimgurl;
//        }
//
//        public String getOpenid() {
//            return openid;
//        }
//
//        public String getNickname() {
//            return nickname;
//        }
//
//        public int getSex() {
//            return sex;
//        }
//
//        public String getCity() {
//            return city;
//        }
//
//        public String getProvince() {
//            return province;
//        }
//
//        public String getCountry() {
//            return country;
//        }
//
//        public String getHeadimgurl() {
//            return headimgurl;
//        }
//    }
//
//    public static class SupplementEntity {
//        /**
//         * centerVideoCover : http://oss.kashowvr.com/images/syy_video_cover.jpeg
//         * centerVideoUrl : http://oss.kashowvr.com/videos/syy_center.mp4
//         * centerBgUrl : http://oss.kashowvr.com/images/syy_center_bg.png
//         */
//
//        private String centerVideoCover;
//        private String centerVideoUrl;
//        private String centerBgUrl;
//
//        public void setCenterVideoCover(String centerVideoCover) {
//            this.centerVideoCover = centerVideoCover;
//        }
//
//        public void setCenterVideoUrl(String centerVideoUrl) {
//            this.centerVideoUrl = centerVideoUrl;
//        }
//
//        public void setCenterBgUrl(String centerBgUrl) {
//            this.centerBgUrl = centerBgUrl;
//        }
//
//        public String getCenterVideoCover() {
//            return centerVideoCover;
//        }
//
//        public String getCenterVideoUrl() {
//            return centerVideoUrl;
//        }
//
//        public String getCenterBgUrl() {
//            return centerBgUrl;
//        }
//        /**
//         * imageUrl : xxx
//         */
//
//
//
////        private String centerVideoUrl;
////
////        public String getCenterVideoUrl() {
////            return centerVideoUrl;
////        }
////
////        public void setCenterVideoUrl(String centerVideoUrl) {
////            this.centerVideoUrl = centerVideoUrl;
////        }
////
////        private String imageUrl;
////
////        public void setImageUrl(String imageUrl) {
////            this.imageUrl = imageUrl;
////        }
////
////        public String getImageUrl() {
////            return imageUrl;
////        }
//    }
}
